<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>患者信息</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
    <style>
    </style>
</head>

<body>
    <main id="app">
      <header id="header" class="aui-bar aui-bar-nav">
            <div class="aui-pull-left aui-btn" tapmode onclick="returnBack()">
                <span class="aui-iconfont aui-icon-left"></span>
            </div>
            <div class="aui-title">患者信息</div>
        </header>
      <section class="hospital">

      </section>
    </main>
</body>

</html>

<script src="../script/api.js" charset="utf-8"></script>
<script src="../script/vue.js" charset="utf-8"></script>
<script type="text/javascript">
    apiready = function () {
      //接收患者ID
      var F_ID = api.pageParam.F_ID;


      var vm = new Vue({
        el: '#app',
        data: {
          searchInfo: ''
        },
        watch: {
          searchInfo: function() {
            console.log(1);
          }
        },
        methods: {
          enterEvaluationDetailInfo: function(item) {
            api.openWin({
                name: 'evaluationForm',
                url: './evaluationForm.html',
                pageParam: {
                    name: 'test'
                }
            });
          }
        }
      })


      var header = $api.byId('header'); // 获取头部
      $api.fixStatusBar(header); // 处理ios兼容

      var pos = $api.offset(header); // 获取位置数据
      api.openFrame({ // 打开Frame
          name: 'PatientDetails',
          url: 'PatientDetails.html',
          pageParam: {F_ID: F_ID},  //患者信息
          rect:{
              x: 0,
              y: pos.h, // 头部留位置
              w: 'auto',
              h: 'auto'
          },
          bounces: false,
          vScrollBarEnabled: false
      });

      api.showProgress({
          title: '努力加载中...',
          text: '',
          modal: true
        });
      }
      setTimeout(() => {
        api.hideProgress()
      }, 1000)
    function returnBack() {
      api.closeWin({
          name: 'patientDetailHeader'
      });
    }
</script>
